//
//  main.m
//  CarPartsInit
//
//  Created by quentin on 15/9/16.
//  Copyright (c) 2015年 QuentinLabs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Tire.h"
#import "Car.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool
    {
        // insert code here...
        NSLog(@"Hello, World!");
        Car* car = [[Car alloc]init];
        for (int i = 0; i <4; i++) {
            Tire* tire = [[Tire alloc]init];
            [tire setPressure: 23+i];
            [tire setPressure:33-i];
            [car setTire:tire atIndex:i];
            [tire release];
        }
        
    }
    return 0;
}
